﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SmartSapce.ServiceLocation;
using SmartSpace.OA;
using SmartSpace.Web;

namespace SmartSpace.WebApp.Modules.OA.Pages
{
    public partial class WorkLog_List : SsTemplatePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                IOAService service = ServiceLocator.Get<IOAService>();
                List<DateTime> data = service.GetWorkLogs(this.User.Identity.Name, DateTime.Now.Year);
                this._ctlList.DataSource = data;
                this._ctlList.DataBind();
            }
        }
    }
}